package com.tengju.bff.interfaces.covercharge.constant;
/**
 * 乐税提现申请商户注销状态枚举类
 *
 * @author cj
 */
public enum LetaxWithdrawMerchantStatusEnum {
    YES(1, "已注销"),
    NO(0, "未注销");

    private Integer code;
    private String desc;

    LetaxWithdrawMerchantStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

    public static LetaxWithdrawMerchantStatusEnum getStatusDesc (Integer code){
        for(LetaxWithdrawMerchantStatusEnum merchantStatusEnum : (LetaxWithdrawMerchantStatusEnum.values())){
            if(merchantStatusEnum.getCode().equals(code)){//如果传入的code与此枚举code相同，则返回此枚举
                return merchantStatusEnum;
            }
        }
        return null;
    }
}
